package com.maiji.cloud.entities.community;

import com.baomidou.mybatisplus.annotations.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors(chain=true)
@Table(name = "com_msg_transmit")
public class ComMsgTransmit {

    @TableId
    @Column(name = "transmit_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
    private String transmitId; //转发ID
    @Column(name = "belong_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String belongId; //归属ID
    @Column(name = "source_user_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String sourceUserId; //来源用户ID
    @Column(name = "transmit_time", type = MySqlTypeConstant.BIGINT)
    private Long transmitTime; //转发时间
    @Column(name = "is_integral",type = MySqlTypeConstant.INT,length = 2,defaultValue = "0")
    private Integer isIntegral;//是否转发得积分 0 ：否 1 ：是


}
